package add__1_compute;

public class Priority {
	public static void main(String[]args) {
	    //int自动转型默认为转向long
	    int a = 10;
	    long b = 20;
	    sum(a,b);
	}
	public static void sum(int a,int b) {
        System.out.println("int:" + (a + b));
    }
	public static void sum(int a,float b) {
	    System.out.println("float:" + (a + b));
	}
	public static void sum(int a,double b) {
        System.out.println("double:"+(a + b));
    }
}
